package com.css.zfzx.sjcj.modules.hddcGeophySvyPoint.repository;

import com.css.zfzx.sjcj.modules.hddcGeophySvyPoint.repository.entity.HddcGeophysvypointEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * @author zhangcong
 * @date 2020-11-28
 */
public interface HddcGeophysvypointRepository extends JpaRepository<HddcGeophysvypointEntity, String> {
    @Query(nativeQuery = true, value = "select * from hddc_Geophysvypoint where project_name in :projectIds")
    List<HddcGeophysvypointEntity> queryHddcGeophysvypointsByProjectId(List<String> projectIds);
    @Query(nativeQuery = true, value = "select * from hddc_Geophysvypoint where task_name in :projectIds")
    List<HddcGeophysvypointEntity> queryHddcGeophysvypointsByTaskId(List<String> projectIds);
}
